mtd: Fallback to ->_read/write_oob() when ->_read/write() is missing
authorBoris Brezillon <[email protected]>
Thu, 16 Aug 2018 15:29:59 +0000 (17:29 +0200)
committerJagan Teki <[email protected]>
Thu, 20 Sep 2018 14:40:49 +0000 (20:10 +0530)
commit596cf083da34c2007f8ec760c8b077f6f28ee655
tree708e52652249bde2ac7471cb8613eb2ff28e5d0a
parent9dc8d155d4e88563f572ee79aab758eb4272f3fd
mtd: Fallback to ->_read/write_oob() when ->_read/write() is missing

Some MTD sublayers/drivers are implementing ->_read/write_oob() and
provide dummy wrappers for their ->_read/write() implementations.
Let the core handle this case instead of duplicating the logic.

Signed-off-by: Boris Brezillon <[email protected]>
Acked-by: Robert Jarzmik <[email protected]>
Acked-by: Brian Norris <[email protected]>
Reviewed-by: Miquel Raynal <[email protected]>
Tested-by: Ladislav Michl <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Reviewed-by: Jagan Teki <[email protected]>
drivers/mtd/mtdcore.c
drivers/mtd/mtdpart.c
drivers/mtd/nand/nand_base.c
drivers/mtd/onenand/onenand_base.c